package RLK_SOCK;

public class Example_01 {
    public void accept() throws IOException {
        ServerSocket serverSocket = null;
        try {
            serverSocket = new ServerSocket(1034);
            Socket socket = serverSocket.accept();   // socket created
            final OutputStream outputStream = socket.getOutputStream();
            sendStatus(outputStream);
            outputStream.close();
        } finally {
            serverSocket.close();
        }
    }
}
